# coding:utf-8
import pymysql.cursors

from utils.configs import config

mysql_config = config['Mysql']

sql_conn = pymysql.connect(
    host=mysql_config['Host'],
    user=mysql_config['User'], password=mysql_config['Password'],
    db=mysql_config['DB'],
    charset=mysql_config['Charset'],
    cursorclass=pymysql.cursors.DictCursor,
    autocommit=True
)


from utils.mysql.mysql import MysqlBase
